home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_volcano.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  7.4 KB  |  323 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_VOLCANO)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. PT = Emitter.ParticleTypesParams[1]
  51. PT.IsEmitterLocked = false
  52. PT.DrawOrder = 2
  53. PT.Material = ENMAT_PARTICLE_LIGHT
  54.  
  55.  
  56. PT.TextureName = "environment_effect_volcano3.dds"
  57.  
  58. PT.ParticlesPerSecond = 20.0;
  59. PT.InitialNumberOfParticles = 0.0;
  60. PT.BaseLifeTime = 4.3;
  61. PT.BaseLifeTimeVariance = 0.0;
  62. PT.BaseSpeed = 3.0;
  63. PT.BaseSpeedVariance = 3.0;
  64.  
  65. PT.TangentSpeed = 1.0;
  66. PT.TangentSpeedVariance = 0.0;
  67. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  68. PT.TangentDirection = vzbzd4
  69. vzbzd4:delete()
  70. PT.TangentAngleMin = 0.0;
  71. PT.TangentAngleMax = 6.28;
  72. PT.IsTangentDependOnBase = false;
  73.  
  74. PT.BaseAngle = 3.0;
  75. PT.BaseAngleVariance = 5.0;
  76. PT.BaseAngleSpeed = 0.2;
  77. PT.BaseAngleSpeedVariance = 0.3;
  78. PT.BaseAngleSpeedDirection = 0;
  79. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  80. PT.BaseDirection = vzbzd5
  81. vzbzd5:delete()
  82. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  83. PT.BaseDirectionVariance = vzbzd6
  84. vzbzd6:delete()
  85. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  86. PT.BasePosition = vzbzd7
  87. vzbzd7:delete()
  88. local vzbzd8 = D3DXVECTOR3:new(15,2,15)
  89. PT.BasePositionVariance = vzbzd8
  90. vzbzd8:delete()
  91. PT.BaseSize = 6.0;
  92. PT.BaseSizeVariance = 0.7;
  93.  
  94. -- color over time
  95. PT.ColorOverTimeR[1].TimePercent = 0.0;
  96. PT.ColorOverTimeR[1].Value = 0.5;
  97. PT.ColorOverTimeG[1].TimePercent = 0.0;
  98. PT.ColorOverTimeG[1].Value = 0.5;
  99. PT.ColorOverTimeB[1].TimePercent = 0.0;
  100. PT.ColorOverTimeB[1].Value = 0.5;
  101.  
  102. PT.ColorOverTimeR[2].TimePercent = 1.0;
  103. PT.ColorOverTimeR[2].Value = 0.0;
  104. PT.ColorOverTimeG[2].TimePercent = 1.0;
  105. PT.ColorOverTimeG[2].Value = 0.0;
  106. PT.ColorOverTimeB[2].TimePercent = 1.0;
  107. PT.ColorOverTimeB[2].Value = 0.0;
  108.  
  109. -- transparency over time
  110. PT.TransparencyOverTime[1].TimePercent = 0.0;
  111. PT.TransparencyOverTime[1].Value = 1.0;
  112.  
  113. PT.TransparencyOverTime[2].TimePercent = 0.2;
  114. PT.TransparencyOverTime[2].Value = 1.0;
  115.  
  116. PT.TransparencyOverTime[3].TimePercent = 1.0;
  117. PT.TransparencyOverTime[3].Value = 0.0;
  118.  
  119. -- size over time
  120. PT.SizeOverTime[1].TimePercent = 0.0;
  121. PT.SizeOverTime[1].Value = 4.0;
  122.  
  123. PT.SizeOverTime[2].TimePercent = 1.0;
  124. PT.SizeOverTime[2].Value = 10.0;
  125.  
  126. -- Speed over time
  127. PT.SpeedOverTime[1].TimePercent = 0.0;
  128. PT.SpeedOverTime[1].Value = 20.0;
  129.  
  130. PT.SpeedOverTime[2].TimePercent = 0.5;
  131. PT.SpeedOverTime[2].Value = 0.0;
  132.  
  133. PT.SpeedOverTime[3].TimePercent = 1.0;
  134. PT.SpeedOverTime[3].Value = 0.0;
  135.  
  136. -- Tangent Speed over time
  137. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  138. PT.TangentSpeedOverTime[1].Value = 0.0;
  139.  
  140. PT.TangentSpeedOverTime[2].TimePercent = 0.1;
  141. PT.TangentSpeedOverTime[2].Value = 30.0;
  142.  
  143. PT.TangentSpeedOverTime[3].TimePercent = 1.0;
  144. PT.TangentSpeedOverTime[3].Value = 70.0;
  145.  
  146.  
  147. -- GravityAcceleration over time
  148. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  149. PT.GravityAccelerationOverTime[1].Value = 50.0;
  150.  
  151. PT.GravityAccelerationOverTime[2].TimePercent = 0.1;
  152. PT.GravityAccelerationOverTime[2].Value = -20.0;
  153.  
  154. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  155. PT.GravityAccelerationOverTime[3].Value = -100.0;
  156.  
  157. -- AngleSpeed over time
  158. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  159. PT.AngleSpeedOverTime[1].Value = 1.0;
  160.  
  161. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  162. PT.AngleSpeedOverTime[2].Value = 2.0;
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182. PT = Emitter.ParticleTypesParams[2]
  183. PT.IsEmitterLocked = false
  184. PT.DrawOrder = 1
  185. PT.Material = ENMAT_SIMPLEPARTICLE
  186.  
  187.  
  188. PT.TextureName = "environment_effect_volcano1.dds"
  189.  
  190. PT.ParticlesPerSecond = 10.0;
  191. PT.InitialNumberOfParticles = 0.0;
  192. PT.BaseLifeTime = 15.3;
  193. PT.BaseLifeTimeVariance = 0.6;
  194. PT.BaseSpeed = 1.0;
  195. PT.BaseSpeedVariance = 0.0;
  196.  
  197. PT.TangentSpeed = 1.0;
  198. PT.TangentSpeedVariance = 0.0;
  199. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  200. PT.TangentDirection = vzbzd9
  201. vzbzd9:delete()
  202. PT.TangentAngleMin = 0.0;
  203. PT.TangentAngleMax = 6.28;
  204. PT.IsTangentDependOnBase = false;
  205.  
  206. PT.BaseAngle = 3.0;
  207. PT.BaseAngleVariance = 5.0;
  208. PT.BaseAngleSpeed = 0.2;
  209. PT.BaseAngleSpeedVariance = 0.3;
  210. PT.BaseAngleSpeedDirection = 0;
  211. local vzbzd10 = D3DXVECTOR3:new(0.0,1.0,0.0)
  212. PT.BaseDirection = vzbzd10
  213. vzbzd10:delete()
  214. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  215. PT.BaseDirectionVariance = vzbzd11
  216. vzbzd11:delete()
  217. local vzbzd12 = D3DXVECTOR3:new(0,0,0)
  218. PT.BasePosition = vzbzd12
  219. vzbzd12:delete()
  220. local vzbzd13 = D3DXVECTOR3:new(15,2,15)
  221. PT.BasePositionVariance = vzbzd13
  222. vzbzd13:delete()
  223. PT.BaseSize = 6.0;
  224. PT.BaseSizeVariance = 0.1;
  225.  
  226. -- color over time
  227. PT.ColorOverTimeR[1].TimePercent = 0.0;
  228. PT.ColorOverTimeR[1].Value = 1.0;
  229. PT.ColorOverTimeG[1].TimePercent = 0.0;
  230. PT.ColorOverTimeG[1].Value = 0.4;
  231. PT.ColorOverTimeB[1].TimePercent = 0.0;
  232. PT.ColorOverTimeB[1].Value = 0.0;
  233.  
  234. PT.ColorOverTimeR[2].TimePercent = 0.3;
  235. PT.ColorOverTimeR[2].Value = 0.0;
  236. PT.ColorOverTimeG[2].TimePercent = 0.3;
  237. PT.ColorOverTimeG[2].Value = 0.0;
  238. PT.ColorOverTimeB[2].TimePercent = 0.3;
  239. PT.ColorOverTimeB[2].Value = 0.0;
  240.  
  241. PT.ColorOverTimeR[3].TimePercent = 0.5;
  242. PT.ColorOverTimeR[3].Value = 0.5;
  243. PT.ColorOverTimeG[3].TimePercent = 0.5;
  244. PT.ColorOverTimeG[3].Value = 0.5;
  245. PT.ColorOverTimeB[3].TimePercent = 0.5;
  246. PT.ColorOverTimeB[3].Value = 0.5;
  247.  
  248. PT.ColorOverTimeR[4].TimePercent = 1.0;
  249. PT.ColorOverTimeR[4].Value = 0.0;
  250. PT.ColorOverTimeG[4].TimePercent = 1.0;
  251. PT.ColorOverTimeG[4].Value = 0.0;
  252. PT.ColorOverTimeB[4].TimePercent = 1.0;
  253. PT.ColorOverTimeB[4].Value = 0.0;
  254.  
  255. -- transparency over time
  256. PT.TransparencyOverTime[1].TimePercent = 0.0;
  257. PT.TransparencyOverTime[1].Value = 0.0;
  258.  
  259. PT.TransparencyOverTime[2].TimePercent = 0.05;
  260. PT.TransparencyOverTime[2].Value = 1.0;
  261.  
  262. PT.TransparencyOverTime[3].TimePercent = 0.55;
  263. PT.TransparencyOverTime[3].Value = 0.5;
  264.  
  265. PT.TransparencyOverTime[4].TimePercent = 1.0;
  266. PT.TransparencyOverTime[4].Value = 0.0;
  267.  
  268. -- size over time
  269. PT.SizeOverTime[1].TimePercent = 0.0;
  270. PT.SizeOverTime[1].Value = 5.0;
  271.  
  272. PT.SizeOverTime[2].TimePercent = 1.0;
  273. PT.SizeOverTime[2].Value = 35.0;
  274.  
  275. -- Speed over time
  276. PT.SpeedOverTime[1].TimePercent = 0.0;
  277. PT.SpeedOverTime[1].Value = 20.0;
  278.  
  279. PT.SpeedOverTime[2].TimePercent = 1.0;
  280. PT.SpeedOverTime[2].Value = 0.0;
  281.  
  282. -- Tangent Speed over time
  283. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  284. PT.TangentSpeedOverTime[1].Value = 0.0;
  285.  
  286. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  287. PT.TangentSpeedOverTime[2].Value = 10.0;
  288.  
  289.  
  290. -- GravityAcceleration over time
  291. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  292. PT.GravityAccelerationOverTime[1].Value = 5.0;
  293.  
  294. PT.GravityAccelerationOverTime[2].TimePercent = 0.3;
  295. PT.GravityAccelerationOverTime[2].Value = 5.0;
  296.  
  297. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  298. PT.GravityAccelerationOverTime[3].Value = -10.0;
  299.  
  300. -- AngleSpeed over time
  301. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  302. PT.AngleSpeedOverTime[1].Value = 1.5;
  303.  
  304. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  305. PT.AngleSpeedOverTime[2].Value = 0.6;
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320. --
  321. -- end particle system description
  322. --
  323.